Drop gdk_device_get_surface_at_position
authorMatthias Clasen <mclasen@redhat.com>
Tue, 26 Mar 2019 00:39:08 +0000 (20:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 26 Mar 2019 22:12:55 +0000 (18:12 -0400)
It is no longer used.

docs/reference/gdk/gdk4-sections.txt
gdk/gdkdevice.c
gdk/gdkdevice.h

index 0e52bcafdcd29037f40995340227c23a609de8f5..057726e65c109716a8c7962bab4326669c40a5d7 100644 (file)
@@ -510,7 +510,6 @@ gdk_device_ungrab
 <SUBSECTION>
 gdk_device_get_state
 gdk_device_get_position
-gdk_device_get_surface_at_position
 gdk_device_get_surface_at_position_double
 gdk_device_get_history
 gdk_device_free_history
index ec46684e12d6428c434ec40cd8716b9d9ddb8294..2811bb4569c446ae498dfde39ac869c3084fa725 100644 (file)
@@ -616,43 +616,6 @@ gdk_device_get_surface_at_position_double (GdkDevice  *device,
   return surface;
 }
 
-/**
- * gdk_device_get_surface_at_position:
- * @device: pointer #GdkDevice to query info to.
- * @win_x: (out) (allow-none): return location for the X coordinate of the device location,
- *         relative to the surface origin, or %NULL.
- * @win_y: (out) (allow-none): return location for the Y coordinate of the device location,
- *         relative to the surface origin, or %NULL.
- *
- * Obtains the surface underneath @device, returning the location of the device in @win_x and @win_y. Returns
- * %NULL if the surface tree under @device is not known to GDK (for example, belongs to another application).
- *
- * As a slave device coordinates are those of its master pointer, This
- * function may not be called on devices of type %GDK_DEVICE_TYPE_SLAVE,
- * unless there is an ongoing grab on them, see gdk_device_grab().
- *
- * Returns: (nullable) (transfer none): the #GdkSurface under the
- * device position, or %NULL.
- **/
-GdkSurface *
-gdk_device_get_surface_at_position (GdkDevice  *device,
-                                   gint       *win_x,
-                                   gint       *win_y)
-{
-  gdouble tmp_x, tmp_y;
-  GdkSurface *surface;
-
-  surface =
-    gdk_device_get_surface_at_position_double (device, &tmp_x, &tmp_y);
-
-  if (win_x)
-    *win_x = round (tmp_x);
-  if (win_y)
-    *win_y = round (tmp_y);
-
-  return surface;
-}
-
 /**
  * gdk_device_get_history: (skip)
  * @device: a #GdkDevice
index d86179b638deda50b1a5c4e917e632c7f0671683..24150e5afb1169fd6dc40f674460af4f8a81399c 100644 (file)
@@ -167,12 +167,6 @@ void     gdk_device_get_state    (GdkDevice         *device,
                                   gdouble           *axes,
                                   GdkModifierType   *mask);
 GDK_AVAILABLE_IN_ALL
-GdkSurface *
-         gdk_device_get_surface_at_position
-                                 (GdkDevice         *device,
-                                  gint              *win_x,
-                                  gint              *win_y);
-GDK_AVAILABLE_IN_ALL
 void     gdk_device_get_position (GdkDevice *device,
                                   double    *x,
                                   double    *y);